﻿
using IotDeviceToolHepler.Device;
using IotDeviceToolHepler.DeviceForOrangePi;
using IotDeviceToolHepler.Utils;

Console.WriteLine("Hello, World!");
//while (true)
//{
//    new DeviceDisplay().Lcd1602(3, "" + System.DateTime.Now.ToString("MM-dd HH:mm:ss"), 1, 0);
//    Thread.Sleep(1000);
//}

//Console.WriteLine(UtilsByte.GetNegativeOriginalBinary("1111111110011011").ToString());

while (true)
{
    int pulseCount = new DeviceExampleWaterFlow().getPulseCount_YFS201(10, 1);
    Console.WriteLine("每秒脉冲数：" + pulseCount.ToString());
    Console.WriteLine("瞬时流量：" + (pulseCount/7.5).ToString());
}